home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q1059.dms / q1059.adf / brik / makefile < prev    next >
Makefile  |  1993-08-30  |  1KB  |  45 lines

  1. # Makefile for brik
  2. # ::[[ @(#) makefile.nix 1.2 89/07/08 10:41:32 ]]::
  3.  
  4. # Please see brik.h for configuration options.
  5.  
  6. # Make sure this file is called "makefile" (rename it if necessary).  Then
  7. # type one of the following.
  8. #
  9. # "make bsd", "make sys_v", "make ultrix", "make uport"
  10. #                   -- makes brik in current directory
  11. # "make install"    -- makes brik, then moves it into DESTDIR defined below
  12. # "make clean"      -- deletes "core", objects, and executable
  13.  
  14. # Directory where we want to move executable brik on "make install"
  15. DESTDIR=/usr/local/bin/.
  16.  
  17. # CFLAGS and CMORE are flags for the C compiler. 
  18. # LDFLAGS and LDMORE are flags for the loader.
  19.  
  20. CFLAGS=-O
  21. CMORE=-DSYS_V
  22. LDFLAGS=
  23. LDMORE=
  24.  
  25. CC=cc
  26. LD=$(CC)
  27.  
  28. .c.o :
  29.     $(CC) -c $(CFLAGS) $(CMORE) $*.c
  30.  
  31. OBJS = brik.o initcrc.o addbfcrc.o
  32.  
  33. brik: $(OBJS)
  34.     $(LD) $(LDFLAGS) $(LDMORE) -o brik $(OBJS)
  35.  
  36. brik.o: brik.c brik.h assert.h
  37.  
  38. initcrc.o: initcrc.c brik.h
  39.  
  40. install: brik
  41.     mv brik $(DESTDIR)/brik
  42.  
  43. clean:
  44.     /bin/rm -f $(OBJS) core brik
  45.